<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <v-test>
            <i slot="pic" slot-scope="obj">❤{{obj.a}}</i>
            <i slot="msg" slot-scope="obj">周冬雨{{obj.b}}</i>
        </v-test>
        <v-test>
            <i slot="pic">☆</i>
            <i slot="msg">达姆</i>
        </v-test>
    </div>
</body>
<script src="../../js/vue.js"></script>
<script>
    Vue.config.productionTip = false;
    Vue.component("v-test",{
        template:`<div>
                        <slot name="pic" a="a"></slot>
                        <strong> v-test </strong>
                        <slot name="msg" b="b"></slot>
                   </div>`
    })

    new Vue({
        el:"#app"
    })
</script>
</html>